package org.jeecg.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 设计文件审核记录表
 */
@Data
@TableName("oms_design_file_audit")
public class DesignFileAudit implements Serializable {
    private static final long serialVersionUID = 1L;
    
    /** 审核ID */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    /** 文件ID */
    private String fileId;
    
    /** 订单ID */
    private String orderId;
    
    /** 租户ID */
    private Integer tenantId;
    
    /** 审核类型 1-汇总单 2-优化单 */
    @Dict(dicCode = "design_audit_type")
    private Integer auditType;
    
    /** 审核状态 0-待审核 1-审核通过 2-审核不通过 */
    @Dict(dicCode = "design_audit_status")
    private Integer auditStatus;
    
    /** 审核意见 */
    private String auditOpinion;
    
    /** 审核人ID */
    private String auditPersonId;
    
    /** 审核人姓名 */
    private String auditPersonName;
    
    /** 审核时间 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;
    
    /** 创建时间 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
} 